package com.tyut.rxtnongyespringboot.bean;

import lombok.Data;
import lombok.ToString;

import java.util.Date;
@Data
@ToString
public class User {


    private String user_name;
    private String password;
    private String nick_name;
    private String phone;
    private String identity_num;

    public User(String address, String avatar, Date create_time, int credit, String identity_num, int integral, String nick_name, String password, String phone, String real_name, String role, Date update_time, String user_name) {
        this.address = address;
        this.avatar = avatar;
        this.create_time = create_time;
        this.credit = credit;
        this.identity_num = identity_num;
        this.integral = integral;
        this.nick_name = nick_name;
        this.password = password;
        this.phone = phone;
        this.real_name = real_name;
        this.role = role;
        this.update_time = update_time;
        this.user_name = user_name;
    }

    public User(String username, String password) {
        this.user_name = username;
        this.password = password;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public int getCredit() {
        return credit;
    }

    public void setCredit(int credit) {
        this.credit = credit;
    }

    public String getIdentity_num() {
        return identity_num;
    }

    public void setIdentity_num(String identity_num) {
        this.identity_num = identity_num;
    }

    public int getIntegral() {
        return integral;
    }

    public void setIntegral(int integral) {
        this.integral = integral;
    }

    public String getNick_name() {
        return nick_name;
    }

    public void setNick_name(String nick_name) {
        this.nick_name = nick_name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getReal_name() {
        return real_name;
    }

    public void setReal_name(String real_name) {
        this.real_name = real_name;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    private String address;
    private String role;
    private Date create_time;
    private Date update_time;
    private int integral;
    private int credit;
    private String avatar;
    private String real_name;
}
